package com.demo.domain;

import java.util.Date;

public class Student {
    private int id;
    private String username;
    private String password;
    private String num;
    private String name;
    private boolean sex;
    private Date birthDay;

    public Student() {
    }

    public Student(String username, String password, String num, String name, boolean sex, Date birthDay) {
        setUsername(username);
        setPassword(password);
        setNum(num);
        setName(name);
        setSex(sex);
        setBirthDay(birthDay);
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", num='" + num + '\'' +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", birthDay=" + birthDay +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public Date getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(Date birthDay) {
        this.birthDay = birthDay;
    }
}
